package com.hxkj.dao.impl;

import com.hxkj.dao.TempletDao;
import com.hxkj.mapper.TempletMapper;
import com.hxkj.domain.po.Templet;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;


/**
* 数据操作实现
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-06-05 19:32:55
*
*/
@Service("templetDao")
public class TempletDaoImpl implements TempletDao {



    @Resource
    private TempletMapper templetMapper;

    @Override
    public Templet get(Long templetId) {
        return templetMapper.selectByPrimaryKey(templetId);
    }

    @Override
    public List<Templet> get(Templet templet) {
        return templetMapper.select(templet);
    }

    @Override
    public int delete(Long templetId) {
        return templetMapper.deleteByPrimaryKey(templetId);
    }

    @Override
    public int delete(Templet templet) {
        return templetMapper.delete(templet);
    }

    @Override
    public int save(Templet templet) {
        return templetMapper.insert(templet);
    }

    @Override
    public int update(Templet templet) {
        return templetMapper.update(templet);
    }

    @Override
    public List<Templet> getTempletTree(Templet templet) {
        return templetMapper.getTempletTree(templet);
    }

    @Override
    public int selectTemplteName(Templet templet) {
        return templetMapper.selectTemplteName(templet);
    }

    @Override
    public int selectChildTemplte(Templet templet) {
        return templetMapper.selectChildTemplte(templet);
    }

    @Override
    public int selectListTemplte(Templet templet) {
        return templetMapper.selectListTemplte(templet);
    }

    @Override
    public int selectTempletFolder(Templet templet) {
        return templetMapper.selectTempletFolder(templet);
    }

    @Override
    public Templet selectTempletFolderPath(Templet templet) {
        return templetMapper.selectTempletFolderPath(templet);
    }

    @Override
    public List<Templet> selectContainPathFolder(Templet templet){
        return templetMapper.selectContainPathFolder(templet);
    }

    @Override
    public Templet getTemplet(Templet t) {
        return templetMapper.getTemplet(t);
    }

    @Override
    public List<Templet> getList() {
        return templetMapper.getList();
    }
}

